<?php

namespace pmvc\ioc\xml;

use DOMElement;

/**
 * Allows for extending the {@link XmlObjectFactory}.
 *
 */
interface Extension {

	/**
	 * Called by the {@link XmlObjectFactory} when it encounters
	 * an XML element that this {@link Extension} was registered
	 * to handle.
	 *
	 * @param DOMElement $element
	 * @param ParseContext $pc
	 */
	function process(DOMElement $element, ParseContext $pc);
}